#ifndef __STATIC_MALLOC_H
#define __STATIC_MALLOC_H

#ifdef __cplusplus
extern "C"
{
#endif

#include <stdint-gcc.h>
#include <stddef.h>

#define MEM2_BLOCK_SIZE 32
#define MEM2_MAX_SIZE (0x700000ul)
#define MEM2_ALLOC_TABLE_SIZE (MEM2_MAX_SIZE / MEM2_BLOCK_SIZE)

void *StaticMalloc(size_t xWantedSize);
uint8_t StaticFree(uint32_t offset);

#ifdef __cplusplus
}
#endif
#endif